<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
	<style type="text/css">
		table {
			width: 50%;
			border-collapse: collapse; /* 去掉单元格之间的距离 */
		}
		
		th, td {
			border: 1px solid #ddd; /* 表格的边框样式 */
			padding: 8px; /* 单元格内的空间 */
			text-align: left; /* 文本对齐方式 */
		}
		
		th {
			background-color: #f2f2f2; /* 表头背景颜色 */
			color: #333; /* 表头字体颜色 */
		}
		
		/* 鼠标悬浮时的样式 */
		tr:hover {
			background-color: #f5f5f5;
		}
	</style>
</head>
<body>
	<br />
	<br />
	<br />
	<br />
	<br />
	<br />
	<center>
		·
		<table>
			<tr>
				<td>姓名</td>
				<td>${name}</td>
				<td>姓别</td>
				<td><c:if test="${sex==1}">男</c:if> <c:if test="${sex==2}">女</c:if>
				</td>
				<td>年龄</td>
				<td>${age}</td>
			</tr>
			<tr>
				<td>爱好</td>
				<td><c:forEach var="chobby" items="${hobby }">
						<c:if test="${chobby==1}">篮球</c:if>
						<c:if test="${chobby==2}">足球</c:if>
						<c:if test="${chobby==3}">排球</c:if>
					</c:forEach></td>
				<td>籍贯</td>
				<td colspan="3">${provice }</td>
			</tr>
			<tr>
				<td>自我介绍</td>
				<td colspan="5">${selfIntroduction }</td>
			</tr>
		</table>
	</center>
</body>
</html>